import {
	http
} from "@/commont/http.js"
// 轮播图
const banner = (data = {}) => {
	return http({
		url: "article/api/advert/show/1",
		data: data
	})
}
// label列表
const label = (data = {}) => {
	return http({
		url: "article/api/category/label/list",
		data: data
	})
}
// 热门推荐 近期更新 免费精品
const hot = (data = {}) => {
	return http({
		url: "course/api/course/search",
		data: data,
		method: "POST"
	})
}
// 付费精品
const pay = (data = {}) => {
	return http({
		url: "course/api/course/search",
		data: {
			current: 1,
			isFree: 0,
			size: 10
		},
		method: "POST"
	})
}

export {
	banner,
	label,
	hot,
	pay
}
